package Model.Entity;

import SqlGenerator.Column;
import SqlGenerator.Entity;
import SqlGenerator.ID;

@Entity("admins")
public class Admins {
    @ID
    @Column(length = 20)
    private Long id;
    @Column(length = 20)
    private String name;
    @Column(length = 20)
    private String pwd;
    @Column(length = 20)
    private String phonenumber;
    @Column(length = 20)
    private String email;
    @Column(length = 20)
    private String payment;
    @Column()
    private Integer rating;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;

    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public String getPhonenumber() {

        return phonenumber;
    }

    public String getEmail() {
        return email;
    }

    public String getPayment() {
        return payment;
    }

    public Integer getRating() {
        return rating;
    }

    public String getPwd() {
        return pwd;
    }

    public String getName() {

        return name;
    }

    public void setPwd(String pwd) {

        this.pwd = pwd;
    }

    public void setName(String name) {

        this.name = name;
    }


}
